package com.jufa_3.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SelectInfo implements Serializable {

    private String openId;

    private String name;

    private String cardNum;

    private String mobile;

    private String comType;

    private String comValue;

    private String keyWord;

    private String outTradeNo;

    private String id;

    private String sourceType;

    private Integer pageNum;

    private String costName;

    private Float fee;

    public SelectInfo(String openId, String name, String cardNum, String mobile, String keyWord, String id, String sourceType) {
        this.openId = openId;
        this.name = name;
        this.cardNum = cardNum;
        this.mobile = mobile;
        this.keyWord = keyWord;
        this.id = id;
        this.sourceType = sourceType;
    }

    public SelectInfo(String openId, String name, String cardNo, String mobile, String id, String sourceType) {
        this.openId = openId;
        this.name = name;
        this.cardNum = cardNo;
        this.mobile = mobile;
        this.keyWord = name + "&" + cardNo + "&" + mobile;
        this.id = id;
        this.sourceType = sourceType;
    }

    public SelectInfo(String name, String cardNo, String id, String sourceType) {
        this.name = name;
        this.cardNum = cardNo;
        this.id = id;
        this.sourceType = sourceType;
    }
}
